package io.renren.modules.aic.controller;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.aic.service.MemberService;
import io.renren.modules.aic.service.TeamService;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 推广团队表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-03-29 22:21:59
 */
@RestController
@RequestMapping("aic/team")
public class TeamController {
	@Autowired
	private TeamService teamService;

	@Autowired
	private MemberService memberService;

	/**
	 * 伞下会员
	 */
	@RequestMapping("/list")
	public R list(@RequestParam Map<String, Object> params) {
		PageUtils page = memberService.selectMemberTeam(params);
		return R.ok().put("page", page);
	}
}
